<template>
  <view>
    <li-statistics
      fn="GetUserBalanceTotal"
      :param.sync="param"
      :pageData.sync="pageData"
      :isLoaded.sync="isLoaded"
    >
      <template #li>
        <block v-if="isLoaded">
          <li-statistics-cards
            :cd="[
              {
                type: 2,
                list: [
                  {
                    text: `累计会员数`,
                    value: pageData.count,
                  },
                  {
                    text: `累计余额`,
                    value: pageData.balance.toFixed(2),
                  },
                ],
              },
              {
                type: 2,
                list: [
                  {
                    text: `累计储值金额`,
                    value: pageData.recharegeBalance.toFixed(2),
                  },
                  {
                    text: `累计赠送金额`,
                    value: pageData.giftBalance.toFixed(2),
                  },
                  
                ],
              },
            ]"
          />
        </block>
      </template>
    </li-statistics>
  </view>
</template>

<script>
import date from "@/utils/date";
export default {
  data() {
    return {
      isLoaded: false,
      pageData: {},
      param: {
        dataTimeRange: [date.getToday(), date.getToday()],
      },
    };
  },
};
</script>
